import express from 'express';

import {
    feedback,
    getUserInfo,
    updateUserInfo,
    getUserCollect,
    collectFood,
    isCollect,
    HLT,
    hltAll,
    getMealRecord,
    addMealRecord,
    deleteMealRecord,
    getUserSignature,
    updateUserSignature
} from '../controller/usersPannel.js';

var router = express.Router();

router.get('/', HLT);

router.get('/all', hltAll);

router.post('/feedback', feedback);

router.get('/profile', getUserInfo);

router.post('/profile', updateUserInfo);

router.get('/collectfood', getUserCollect);

router.post('/collectfood', collectFood);

router.get('/iscollect', isCollect);

router.post('/addmealrecord', addMealRecord);

router.post('/getmealrecord', getMealRecord);

router.post('/delmealrecord', deleteMealRecord);

router.post('/signature', updateUserSignature);

router.get('/signature', getUserSignature);

export default router;